package com.example.kyyl.greendao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @ProjectName: KYYL
 * @Package: com.example.kyyl.greendao
 * @ClassName: Student
 * @Description: java类作用描述
 * @CreateDate: 2021/6/1 0001 9:43
 * @UpdateUser: 更新者：
 * @UpdateDate: 2021/6/1 0001 9:43
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
@Entity
public class BleBean {
    //不能用int
    @Id(autoincrement = true)
    private Long id;

    private String mac;
    private String bleDeviceData;

    @Keep
    public BleBean(Long id, String mac, String bleDeviceData) {
        this.id = id;
        this.mac = mac;
        this.bleDeviceData = bleDeviceData;
    }

    @Keep
    public BleBean(String mac, String bleDeviceData) {
        this.mac = mac;
        this.bleDeviceData = bleDeviceData;
    }

    @Keep
    public BleBean() {
    }

    public String getBleDeviceData() {
        return bleDeviceData == null ? "" : bleDeviceData;
    }

    public void setBleDeviceData(String bleDeviceData) {
        this.bleDeviceData = bleDeviceData == null ? "" : bleDeviceData;
    }

    public String getMac() {
        return mac == null ? "" : mac;
    }

    public void setMac(String mac) {
        this.mac = mac == null ? "" : mac;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


}